{extend name="base"/}
{block name="css"}
<style>
	.layui-body {
		position: absolute;
		left: 0px;
		right: 0;
		top: 20px;
		bottom: 0;
		z-index: 998;
		width: auto;
		overflow: hidden;
		overflow-y: auto;
		box-sizing: border-box;
	}
</style>
{/block}
{block name="content"}
<div class="layui-container">
	<div class="layui-row">
		<div class="layui-col-lg12">
			<fieldset class="layui-elem-field">
				<legend>轮播图管理 - 新增图片</legend>
				<div class="layui-field-box">
					<form id="areaForm" class="layui-form" style="width:80%;" enctype="multipart/form-data">
						<div class="layui-form-item">
							<label class="layui-form-label">轮播图片</label>
							<div class="layui-input-block">
								<div class="layui-input-inline">
									<button type="button" class="layui-btn layui-btn-normal" id="test1">上传轮播图片</button>
									<p id="demoText"></p>
								</div>
								<div class="layui-input-inline">
									<img id="preview" width="80px" src="" >
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">链接</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input dataIntegral" name="link" value=""   placeholder="请输入链接">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">排序</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input dataIntegral" name="sort" value=""   placeholder="请输入排序">
							</div>
						</div>
						{:token()}
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit="" lay-filter="addNews">立即提交</button>
							</div>
						</div>
					</form>
				</div>
			</fieldset>
		</div>
	</div>
</div>
{/block}
{block name="js"}
<script type="text/javascript" src="__ADMIN__/js/addBanner.js"></script>
{/block}